function Animal(skill) {
    this.skill = skill;
    this.colors = ["white", "black"]
}

Animal.prototype.say = function() {
    console.log("我有" + this.skill + "的能力！！!");
}

function Person(skill) {
    Animal.call(this, "吃东西");
    this.skill = skill;
}

let p1 = new Person("写代码")
console.log(p1.say());